<script>
export default {
  name: 'EMusic1',
  props: [
    'tabPosition',
    'shu1'
  ]
}
</script>

<template>
  <el-tabs :tab-position="tabPosition" class="tabs" type="card">
    <el-tab-pane label="用户管理">
      <span v-for="item in shu1" :key="item.id">
        <e-collapse :shu3="item===1 ? item:0" v-if="item===1"></e-collapse>
      </span>
    </el-tab-pane>
    <el-tab-pane label="配置管理">
      <span v-for="item in shu1" :key="item.id">
        <e-collapse :shu3="item===2 ? item:0" v-if="item===2"></e-collapse></span>
    </el-tab-pane>
    <el-tab-pane label="角色管理">
      <span v-for="item in shu1" :key="item.id">
        <e-collapse :shu3="item===3 ? item:0" v-if="item===3"></e-collapse></span>
    </el-tab-pane>
    <el-tab-pane label="定时任务补偿">
      <span v-for="item in shu1" :key="item.id">
        <e-collapse :shu3="item===4 ? item:0" v-if="item===4"></e-collapse></span>
    </el-tab-pane>
  </el-tabs>
</template>

<style scoped lang="scss">
$bgd: rgba(0, 0, 0, 0.5);
$textcol: white;
.tabs {
  max-width: 1100px;
  margin-bottom: 20px;
  font-weight: bold;
}

::v-deep .el-tabs__header {
  user-select: none;
  border-radius: 30px;
  border: 2px solid #003153;
  padding: 2px;
  background: $bgd;

  .el-tabs__nav-scroll {
    display: flex;
    justify-content: center;
    border-radius: 30px;

    .el-tabs__nav {
      border: 0;
      border-radius: 10px;
    }
  }
}

::v-deep .el-tabs__item {
  border: transparent !important;
  font-size: 14px;
  text-align: center;
  transition: all 0.5s;
  margin: 4px;
  border-radius: 30px;
  color: grey;

  &:hover {
    background: #003153;
  }
;

  &.is-active {
    background: #003153;
    color: $textcol;
  }
}
</style>
